import java.util.logging.Logger;

/**
 * jul转到log4j 2，读取配置log4j2.xml
 *
 * @Author gucb
 * @Date 2017/6/14.
 */
public class Log4jDemo {

  static {
    System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
  }

  protected static final Logger log = Logger.getLogger("jdk");

  public static void main(String[] args) {
    log.info("hello world");
  }
}
